package cn.abcsys.cloud.devops.pipeline.common;

public class JenkinsItem {
	/**
	 * jenkins服务器地址
	 */
	private String host_ip;
	/**
	 * jenkins服务器登录用户
	 */
	private String host_username;
	/**
	 * jenkins服务器登录密码
	 */
	private String host_pwd;
	/**
	 * 创建的job名称
	 */
	private String item_name;
	/**
	 * jenkins调用地址
	 * example: http://42.159.118.183:9005/jenkins
	 */
	private String jenkins_url;
	/**
	 * jenkins用户
	 */
	private String jenkins_user;
	/**
	 * jenkins密码
	 */
	private String jenkins_pwd;
	/**
	 * jenkins创建job时指定代码仓库
	 * example: git@42.159.118.183:mayunhao/devops-service-sample.git
	 */
	private String repository_url;
	/**
	 * jenkins创建job时指定分支
	 * example: *\/master
	 */
	private String branch_specifier;
	/**
	 * jenkins创建job时定义的执行构建的shell脚本
	 * example: cp /root/.jenkins/workspace/devops-service-sample/target/devops-service-sample-1.war /opt/
	 */
	private String command;
	/**
	 * 构建次数
	 */
	private int number;
	/**
	 * 构建保存天数
	 */
	private int jenkinsDaysToKeep;
	/**
	 * 构建保存最多次数
	 */
	private int jenkinsNumToKeep;
	/**
	 * Dockerfile文件所在源码的文件夹目录
	 * $WORKSPACE/docker
	 * $WORKSPACE为jenkins workspace+jobName
	 */
	private String dockerfile_dir;
	/**
	 * 镜像名称
	 */
	private String imageName;
	/**
	 * 推送仓库地址
	 */
	private String registry_url;
	/**
	 * 是否通过jenkins制作镜像
	 */
	private byte makeImage;
	/**
	 * 是否通过jenkins推送镜像到仓库
	 */
	private byte pushImage;
	public String getHost_ip() {
		return host_ip;
	}
	public void setHost_ip(String host_ip) {
		this.host_ip = host_ip;
	}
	public String getHost_username() {
		return host_username;
	}
	public void setHost_username(String host_username) {
		this.host_username = host_username;
	}
	public String getHost_pwd() {
		return host_pwd;
	}
	public void setHost_pwd(String host_pwd) {
		this.host_pwd = host_pwd;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public String getJenkins_user() {
		return jenkins_user;
	}
	public void setJenkins_user(String jenkins_user) {
		this.jenkins_user = jenkins_user;
	}
	public String getJenkins_pwd() {
		return jenkins_pwd;
	}
	public void setJenkins_pwd(String jenkins_pwd) {
		this.jenkins_pwd = jenkins_pwd;
	}
	public String getRepository_url() {
		return repository_url;
	}
	public void setRepository_url(String repository_url) {
		this.repository_url = repository_url;
	}
	public String getBranch_specifier() {
		return branch_specifier;
	}
	public void setBranch_specifier(String branch_specifier) {
		this.branch_specifier = branch_specifier;
	}
	public String getCommand() {
		return command;
	}
	public void setCommand(String command) {
		this.command = command;
	}
	public String getJenkins_url() {
		return jenkins_url;
	}
	public void setJenkins_url(String jenkins_url) {
		this.jenkins_url = jenkins_url;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getJenkinsDaysToKeep() {
		return jenkinsDaysToKeep;
	}
	public void setJenkinsDaysToKeep(int jenkinsDaysToKeep) {
		this.jenkinsDaysToKeep = jenkinsDaysToKeep;
	}
	public int getJenkinsNumToKeep() {
		return jenkinsNumToKeep;
	}
	public void setJenkinsNumToKeep(int jenkinsNumToKeep) {
		this.jenkinsNumToKeep = jenkinsNumToKeep;
	}
	public String getDockerfile_dir() {
		return dockerfile_dir;
	}
	public void setDockerfile_dir(String dockerfile_dir) {
		this.dockerfile_dir = dockerfile_dir;
	}
	public String getImageName() {
		return imageName;
	}
	public void setImageName(String imageName) {
		this.imageName = imageName;
	}
	public String getRegistry_url() {
		return registry_url;
	}
	public void setRegistry_url(String registry_url) {
		this.registry_url = registry_url;
	}
	public byte getMakeImage() {
		return makeImage;
	}
	public void setMakeImage(byte makeImage) {
		this.makeImage = makeImage;
	}
	public byte getPushImage() {
		return pushImage;
	}
	public void setPushImage(byte pushImage) {
		this.pushImage = pushImage;
	}
	
}
